package cn.tedu.account.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author wy
 * @Date 2021/3/4 16:07
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class Account {
    @TableId
    private Long id;
    private Long userId;
    private BigDecimal total;//double不精确
    private BigDecimal used;
    private BigDecimal residue;
    private BigDecimal frozen;



}
